<template>
  <div class="money">
    {{$store.state.money.money}}
    <br>
    <button @click="add">增加</button>
    <button @click="reduce">减少</button>
  </div>
</template>
<script>
  import {mapActions} from "vuex"
  export default {
    name:"Money",
    methods:mapActions('money',['add','reduce'])
  }
</script>
<style>

</style>
